<aside class="main-sidebar">
  <section class="sidebar" data-layout="sidebar-collapse">
    <ul class="sidebar-menu" data-widget="tree">
      <li class="treeview">
        <a href="#">
          <%= icon('fas', 'table') %>
          <span class="pull-right-container">
            应用
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <li>
            <a href="/apps">
              <%= icon('far', 'circle') %>应用卡片
            </a>
          </li>
          <li>
            <a href="/versions">
              <%= icon('far', 'circle') %>应用表格
            </a>
          </li>
        </ul>
      </li>
      <li class="treeview">
         <% if current_user.is_admin? %>
         <a href="#">
          <%= icon('fas', 'user') %>
          <span class="pull-right-container">
            用户
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <li>
            <a href="/users">
              <%= icon('far', 'circle') %>用户管理
            </a>
          </li>
        </ul>
        <% end %>
      </li>
    </ul>
  </section>
</aside>
